<?xml version='1.0' encoding='UTF-8'?>

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:p="http://primefaces.prime.com.tr/ui">
	
	<div id="section-header">
	    <img src="#{resource['images:logo.gif']}" alt="Logo"/>
		<h1>GP-TMA 2</h1>
	</div>
	
	<div class="colonneGauche">
		<div id="section-menu">
			<ui:insert name="menu">
				<!-- default menu -->
				<ui:include src="./menu.xhtml" />
			</ui:insert>
		</div>
		<div id="section-messages">
			<h:messages infoClass="fondVert" errorClass="fondRouge" />
			<h:outputText value="#{msg.loginNotLogged}" styleClass="fondRouge" rendered="#{param.loginError}" />
			<h:outputText value="#{msg.infoSessionExpired}" styleClass="fondRouge" rendered="#{param.sessionLost}" />
		</div>
	</div>
	
	<div id="section-contenu">
		<ui:insert name="section-titre">
			<h2><ui:insert name="pageTitle">Default page title</ui:insert></h2>
		</ui:insert>
		<ui:insert name="content">Default content</ui:insert>		
	</div>

	<ui:remove>
	    <p:ajaxStatus>
			<f:facet name="start">
			    <div class="ajaxStatus">
			    	<img src="#{resource['images:loading.gif']}" alt="Loading" />
			    </div>
			</f:facet>
	    </p:ajaxStatus>
	</ui:remove>
	
	<div class="spacer">
		&#160;
	</div>
	
</ui:composition>